import React from "react";
import Item from "./item";
import '../assets/css/list.css'
function List(props) { 
  const {ToduList,update,del} = props
  return (
    <ul>
    {ToduList.map(item=>{
      return <Item {...item} key={item.id} update={update} del={del}></Item>
    })}
    </ul>
  )
 }
export default List